﻿using System;

namespace IconYuan.Model.DTO.Products
{
    /// <summary>
    /// 商品SKU
    /// </summary>
    public class GoodsSkuDto
    {

        /// <summary>
        /// 商品ID
        /// </summary>
        public int goods_id { get; set; }
        /// <summary>
        /// 商品SKU唯一标识
        /// </summary>
        public string goods_sku_id { get; set; }
        /// <summary>
        /// 商品价格（实际售价）
        /// </summary>
        public decimal goods_price { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public int stock_num { get; set; }
        ///// <summary>
        ///// SKU 关联的规格值ID集
        ///// </summary>
        //public List<int> spec_value_ids { get; set; }

        ///// <summary>
        ///// SKU 关联的多个规格
        ///// </summary>
        //public List<SkuSpecDto> goods_props { get; set; }
        ///// <summary>
        ///// 封面url
        ///// </summary>
        //public string image_url { get; set; }
        ///// <summary>
        ///// 自增SKUID
        ///// </summary>
        //public int id { get; set; }
        ///// <summary>
        ///// 划线价格
        ///// </summary>
        //public decimal line_price { get; set; }
        ///// <summary>
        ///// SKU编码
        ///// </summary>
        //public string goods_sku_no { get; set; }
        ///// <summary>
        ///// SKU图片ID
        ///// </summary>
        //public int image_id { get; set; }
        ///// <summary>
        ///// 商品重量
        ///// </summary>
        //public float goods_weight { get; set; }
    }

    /// <summary>
    /// SKU的关联的规格
    /// </summary>
    public class SkuSpecDto
    {
        /// <summary>
        /// 规格组,例如：颜色
        /// </summary>
        public SkuSpecDetail group { get; set; }
        /// <summary>
        /// 规格，例如：蓝色
        /// </summary>
        public SkuSpecDetail value { get; set; }
    }

    /// <summary>
    /// SKU规格信息
    /// </summary>
    public class SkuSpecDetail
    {
        /// <summary>
        ///  规格组id或规格值id
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 规格组名称或规格值名称
        /// </summary>
        public string name { get; set; }
    }
}
